var t = getApp(), e = require("../../C6EFF1F4A71FB5DFA08999F3BD3CA4D1.js").navBack;

Page({
    data: {
        show: !1,
        selectData: [ "+86" ],
        index: 0,
        phoneNumber: "",
        statusBarHeight: t.globalData.statusBarHeight,
        titleBarHeight: t.globalData.titleBarHeight,
        loginStatus: 0,
        sessionId: ""
    },
    onLoad: function(t) {
        this.setData({
            sessionId: t.sessionId || ""
        });
    },
    selectTap: function() {
        this.setData({
            show: !this.data.show
        });
    },
    optionTap: function(t) {
        var e = t.currentTarget.dataset.index;
        this.setData({
            index: e,
            show: !this.data.show
        });
    },
    bindMobileNum: function(t) {
        this.setData({
            phoneNumber: t.detail.value
        });
    },
    tapLogin: function() {
        var t = this.data.phoneNumber.trim();
        t ? /1(3|4|5|6|7|8|9)[0-9]{9}/.test(t) ? wx.redirectTo({
            url: "/pages/register/register?phoneNumber=" + t + "&sessionId=" + this.data.sessionId
        }) : wx.showToast({
            title: "请输入正确的手机号码",
            icon: "none",
            duration: 1500
        }) : wx.showToast({
            title: "请输入手机号！",
            icon: "none",
            duration: 1500
        });
    },
    tapUserLicense: function() {
        wx.navigateTo({
            url: "/pages/register/agreement"
        });
    },
    goback: function() {
        e();
    }
});